package com.qs.auto.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigInteger;
import java.util.Date;


/**
 * The persistent class for the auto_vehicle_detail database table.
 * 
 */
@Entity
@Table(name="auto_vehicle_detail")
public class AutoVehicleDetail implements Serializable {
	private static final long serialVersionUID = 1L;
	private String vehicleId;
	private String antiTheftDeviceInstalled;
	private String createdBy;
	private Date createdDt;
	private BigInteger estimatedAnnualMileage;
	private BigInteger financeType;
	private String isVehicleHybrid;
	private int manufacturingYear;
	private String primaryVehicleUse;
	private String updatedBy;
	private Date updatedDt;
	private String vehicleIdNo;
	private Date vehiclePurchaseDate;
	private BigInteger vehicleStaysAt;
	private BigInteger vehicleType;
	private AutoVehicleMakeMst autoVehicleMakeMst;
	private AutoVehicleModelMst autoVehicleModelMst;
	private AutoVehicleBodyMst autoVehicleBodyMst;

    public AutoVehicleDetail() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="VEHICLE_ID")
	public String getVehicleId() {
		return this.vehicleId;
	}

	public void setVehicleId(String vehicleId) {
		this.vehicleId = vehicleId;
	}


	@Column(name="ANTI_THEFT_DEVICE_INSTALLED")
	public String getAntiTheftDeviceInstalled() {
		return this.antiTheftDeviceInstalled;
	}

	public void setAntiTheftDeviceInstalled(String antiTheftDeviceInstalled) {
		this.antiTheftDeviceInstalled = antiTheftDeviceInstalled;
	}


	@Column(name="CREATED_BY")
	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="CREATED_DT")
	public Date getCreatedDt() {
		return this.createdDt;
	}

	public void setCreatedDt(Date createdDt) {
		this.createdDt = createdDt;
	}


	@Column(name="ESTIMATED_ANNUAL_MILEAGE")
	public BigInteger getEstimatedAnnualMileage() {
		return this.estimatedAnnualMileage;
	}

	public void setEstimatedAnnualMileage(BigInteger estimatedAnnualMileage) {
		this.estimatedAnnualMileage = estimatedAnnualMileage;
	}


	@Column(name="FINANCE_TYPE")
	public BigInteger getFinanceType() {
		return this.financeType;
	}

	public void setFinanceType(BigInteger financeType) {
		this.financeType = financeType;
	}


	@Column(name="IS_VEHICLE_HYBRID")
	public String getIsVehicleHybrid() {
		return this.isVehicleHybrid;
	}

	public void setIsVehicleHybrid(String isVehicleHybrid) {
		this.isVehicleHybrid = isVehicleHybrid;
	}


	@Column(name="MANUFACTURING_YEAR")
	public int getManufacturingYear() {
		return this.manufacturingYear;
	}

	public void setManufacturingYear(int manufacturingYear) {
		this.manufacturingYear = manufacturingYear;
	}


	@Column(name="PRIMARY_VEHICLE_USE")
	public String getPrimaryVehicleUse() {
		return this.primaryVehicleUse;
	}

	public void setPrimaryVehicleUse(String primaryVehicleUse) {
		this.primaryVehicleUse = primaryVehicleUse;
	}


	@Column(name="UPDATED_BY")
	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="UPDATED_DT")
	public Date getUpdatedDt() {
		return this.updatedDt;
	}

	public void setUpdatedDt(Date updatedDt) {
		this.updatedDt = updatedDt;
	}


	@Column(name="VEHICLE_ID_NO")
	public String getVehicleIdNo() {
		return this.vehicleIdNo;
	}

	public void setVehicleIdNo(String vehicleIdNo) {
		this.vehicleIdNo = vehicleIdNo;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="VEHICLE_PURCHASE_DATE")
	public Date getVehiclePurchaseDate() {
		return this.vehiclePurchaseDate;
	}

	public void setVehiclePurchaseDate(Date vehiclePurchaseDate) {
		this.vehiclePurchaseDate = vehiclePurchaseDate;
	}


	@Column(name="VEHICLE_STAYS_AT")
	public BigInteger getVehicleStaysAt() {
		return this.vehicleStaysAt;
	}

	public void setVehicleStaysAt(BigInteger vehicleStaysAt) {
		this.vehicleStaysAt = vehicleStaysAt;
	}


	@Column(name="VEHICLE_TYPE")
	public BigInteger getVehicleType() {
		return this.vehicleType;
	}

	public void setVehicleType(BigInteger vehicleType) {
		this.vehicleType = vehicleType;
	}


	//bi-directional many-to-one association to AutoVehicleMakeMst
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="MAKE_ID")
	public AutoVehicleMakeMst getAutoVehicleMakeMst() {
		return this.autoVehicleMakeMst;
	}

	public void setAutoVehicleMakeMst(AutoVehicleMakeMst autoVehicleMakeMst) {
		this.autoVehicleMakeMst = autoVehicleMakeMst;
	}
	

	//bi-directional many-to-one association to AutoVehicleModelMst
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="MODEL_ID")
	public AutoVehicleModelMst getAutoVehicleModelMst() {
		return this.autoVehicleModelMst;
	}

	public void setAutoVehicleModelMst(AutoVehicleModelMst autoVehicleModelMst) {
		this.autoVehicleModelMst = autoVehicleModelMst;
	}
	

	//bi-directional many-to-one association to AutoVehicleBodyMst
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="BODY_ID")
	public AutoVehicleBodyMst getAutoVehicleBodyMst() {
		return this.autoVehicleBodyMst;
	}

	public void setAutoVehicleBodyMst(AutoVehicleBodyMst autoVehicleBodyMst) {
		this.autoVehicleBodyMst = autoVehicleBodyMst;
	}
	
}